﻿<UserControl x:Class="Assembly.Metro.Controls.PageTemplates.Games.HaloInfo"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:ed="http://schemas.microsoft.com/expression/2010/drawing"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Background="#28282b"
             d:DesignHeight="1000" d:DesignWidth="1200">
    <Grid>
        <Grid x:Name="sideBar" Width="300" VerticalAlignment="Stretch" HorizontalAlignment="Left" Background="#2d2d30">
            <Rectangle Fill="#FF545456" Width="2" Margin="0" VerticalAlignment="Stretch" HorizontalAlignment="Right" d:LayoutOverrides="Height" />

            <TextBlock Name="lblBLFname" FontFamily="{DynamicResource MetroFontLight}" Text="map_info" Foreground="White" FontSize="32" Margin="25,36.5,13,0" Height="50" VerticalAlignment="Top" TextTrimming="CharacterEllipsis" />
            <ed:RegularPolygon Fill="#FF4A4A4C" HorizontalAlignment="Left" Height="19" InnerRadius="1" Margin="-16,51,0,0" PointCount="3" Stretch="Fill" VerticalAlignment="Top" Width="48" RenderTransformOrigin="0.5,0.5">
                <ed:RegularPolygon.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform Angle="90"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </ed:RegularPolygon.RenderTransform>
            </ed:RegularPolygon>

            <Rectangle Fill="#FF363639" Height="1" Width="250" Margin="25,114.25,25,0" VerticalAlignment="Top" d:LayoutOverrides="Height" />
            <ScrollViewer Margin="25,156,15,21" ScrollViewer.VerticalScrollBarVisibility="Auto">
                <StackPanel>
                    <TextBlock FontFamily="{DynamicResource MetroFontSemiLight}" Text="BLF Info;" Foreground="White" FontSize="16" />
                    <StackPanel x:Name="paneBLFInfo" Margin="0,10,0,0">
                            
                    </StackPanel>

                    <Rectangle Fill="#FF363639" Height="1" Width="250" Margin="0,20,0,15" VerticalAlignment="Top" d:LayoutOverrides="Height" />

                    <TextBlock FontFamily="{DynamicResource MetroFontSemiLight}" Text="Map Info;" Foreground="White" FontSize="16" />
                    <StackPanel x:Name="panelMapInfo" Margin="0,10,0,0">
                        <StackPanel Orientation="Horizontal">
                            <StackPanel Width="90">
                                <Grid Height="24">
                                    <TextBlock Text="Game:" Style="{DynamicResource GenericTextblock}" VerticalAlignment="Center" />
                                </Grid>
                                <Grid Height="24">
                                    <TextBlock Text="Map ID:" Style="{DynamicResource GenericTextblock}" VerticalAlignment="Center" />
                                </Grid>
                                <Grid Height="24">
                                    <TextBlock Text="Internal Name:" ToolTip="Name of the relative .map file." Style="{DynamicResource GenericTextblock}" VerticalAlignment="Center" />
                                </Grid>
                                <Grid Height="24">
                                    <TextBlock Text="Physical Name:" ToolTip="Name of the relative .blf file." Style="{DynamicResource GenericTextblock}" VerticalAlignment="Center" />
                                </Grid>
                            </StackPanel>
                            <StackPanel>
                                <Grid Height="24" Margin="10,0,0,0">
                                    <TextBlock x:Name="txtGameName" Text="" Foreground="{DynamicResource ExtryzeAccentBrushSecondary}" VerticalAlignment="Center" />
                                </Grid>
                                <TextBox x:Name="txtMapID" Width="150" Margin="10,0,0,0" TextChanged="txtMapID_TextChanged" />
                                <TextBox x:Name="txtMapInternalName" Width="150" Margin="10,0,0,0" MaxLength="30" TextChanged="txtMapInternalName_TextChanged" />
                                <TextBox x:Name="txtMapPhysicalName" Width="150" Margin="10,0,0,0" MaxLength="30" />
                            </StackPanel>
                        </StackPanel>
                        <Button x:Name="btnUpdate" Margin="0,20,0,0" Content="Save MapInfo" Click="btnUpdate_Click" />
                    </StackPanel>
                    
                    <Rectangle Fill="#FF363639" Height="1" Width="250" Margin="0,20,0,15" VerticalAlignment="Top" d:LayoutOverrides="Height" />
                </StackPanel>
            </ScrollViewer>
        </Grid>

        <Grid Margin="300,0,0,0" HorizontalAlignment="Stretch">
            <TextBlock x:Name="lblBLFNameFooter" Text="map_info" VerticalAlignment="Bottom" HorizontalAlignment="Left" FontFamily="{DynamicResource MetroFontLight}" FontSize="200" Opacity="0.3" Foreground="#FF999999" Margin="0,0,0,-36" />
            
            <Border Margin="30,30,0,0" HorizontalAlignment="Left" BorderThickness="0" VerticalAlignment="Top" Padding="10" BorderBrush="#FF999999">
                <Grid x:Name="MapNames" Width="400">
                    <StackPanel Height="45" VerticalAlignment="Top">
                        <TextBlock Text="Select Language;" Style="{DynamicResource GenericTextblock}" />
                        <ComboBox x:Name="cbLanguages" Width="200" ItemsSource="{Binding}" Margin="10,0,0,0" HorizontalAlignment="Left" SelectedIndex="0" SelectionChanged="cbLanguages_SelectionChanged">
                            <ComboBox.ItemsPanel>
                                <ItemsPanelTemplate>
                                    <VirtualizingStackPanel VirtualizingStackPanel.IsVirtualizing="True" VirtualizingStackPanel.VirtualizationMode="Recycling" />
                                </ItemsPanelTemplate>
                            </ComboBox.ItemsPanel>
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Text="{Binding Language}" />
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>
                    </StackPanel>
                    <StackPanel Margin="0,50,0,0">
                        <TextBlock Text="Map Name:" Style="{DynamicResource GenericTextblock}" />
                        <TextBox x:Name="txtMapName" MaxLength="30" Margin="10,2,10,0" />
                        
                        <TextBlock Text="Map Descrption:" Margin="0,20,0,0" Style="{DynamicResource GenericTextblock}" />
                        <TextBox x:Name="txtMapDesc" MaxLength="126" Margin="10,2,10,0" TextWrapping="Wrap" Height="78" AcceptsReturn="True" />
                        
                        <Button x:Name="btnTranslateAllOthers" Visibility="Collapsed" Margin="0,20,0,10" Content="Translate all other Names/Descriptions." Click="btnTranslateAllOthers_Click" />
                    </StackPanel>
                </Grid>
            </Border>
        </Grid>
    </Grid>
</UserControl>
